package com.whut.gkd.dao;

import com.whut.gkd.bean.ApplyGood;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IApplyGoodDao {
    int getTotalCount(@Param("shopId") int shopId, @Param("goodName") String goodName);

    List<ApplyGood> findAllApplyGood(@Param("shopId") int shopId, @Param("start") int start, @Param("size") int size, @Param("goodName") String goodName);

    void addApplyGood(ApplyGood applyGood);

    void deleteApplyGoodByApplyId(int applyId);

    ApplyGood findApplyGoodByApplyId(int applyId);

    void modifyApplyGood(ApplyGood applyGood);

    int getCountByApplyId(int applyId);


    ApplyGood getApplyGoodById(int applyID);

    List<ApplyGood> findAll(@Param("start")int start, @Param("size")int size, @Param("shopName")String shopName);

    int getTotalCounts(@Param("shopName")String shopName);

    void allowgood(ApplyGood applyGood);

    void deleteByapplyId(@Param("applyId")int applyId);
}
